package com.feng.behavior
{
	import com.feng.ControllerCenter;
	import com.feng.data.StateData;
	import com.feng.model.Player;
	import com.feng.stateAnalysis.AttackOrderAnalysis;
	import com.feng.stateAnalysis.KillStealAnalysis;
	import com.feng.stateAnalysis.MultiplayerAnalysis;
	import com.feng.stateAnalysis.ThreeAnalysis;
	
	import flash.utils.Dictionary;

	/**
	 * @author 风之守望者
	 * 2013-3-27
	 */
	public class BehaviorBase
	{

		private var controllerCenter:ControllerCenter;

		public function BehaviorBase(controllerCenter:ControllerCenter)
		{
			this.controllerCenter = controllerCenter;
		}

		/**
		 * 状态数据
		 */
		public function get stateData():StateData
		{
			return controllerCenter.stateData;
		}
		
		public function get enemyList():Vector.<Player>
		{
			return stateData.enemyList;
		}
		
		public function get playerDic():Dictionary
		{
			return stateData.playerDic;
		}
		
		public function get killStealAnalysis():KillStealAnalysis
		{
			return controllerCenter.killStealAnalysis;
		}
		
		public function get attackOrderAnalysis():AttackOrderAnalysis
		{
			return controllerCenter.attackOrderAnalysis;
		}
		
		public function get feng():Player
		{
			return stateData.feng;
		}

		public function get attackMeDic():Dictionary
		{
			return stateData.attackMeDic;
		}

		public function get threeStateAnalysis():ThreeAnalysis
		{
			return controllerCenter.threeStateAnalysis;
		}
		
		public function get multiplayerAnalysis():MultiplayerAnalysis
		{
			return controllerCenter.multiplayerAnalysis;
		}
	}
}
